{% load static %}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1-dist/css/bootstrap.css' %}">
    <style>
        body, html {
    height: 100%;
    margin: 0;
}
#bg {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
        .login {
    width: 500px;
  height: 400px;
  background-color: #ffffff;
  box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.5);
}

.login h1 {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;

}

.form-group {
    margin-top: 10px;
}

.btn {
    margin-top: 30px;
    margin-left: 100px;
    width: 100px;
}
label {
    font-size: 18px;
}
    </style>
</head>
<body>
<div id="bg">
    <div class="login">
    <h1>智慧农业用户管理系统</h1>
    <form class="form-horizontal" method="post">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-3 control-label">用户名：</label>
            <div class="col-sm-9">
                <input type="text" name="username" class="form-control" id="inputEmail3" placeholder="用户名">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-3 control-label">密码：</label>
            <div class="col-sm-9">
                <input type="password" name="pwd" class="form-control" id="inputPassword3" placeholder="密码">
            </div>
        </div>
        <span>{{ err }}</span>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">登入</button>
            </div>
        </div>
        <script src="{% static 'js/samcp.js' %}"></script>
    </form>
</div>
</div>

</body>
</html>